package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pojo.Pub;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PubManageMapper extends BaseMapper<Pub> {

    List<Pub> selectAllPubManage(@Param("name")String brand,
                                 @Param("start") Integer start,
                                 @Param("pageSize")Integer pageSize);//条件+分页查询酒店信息

    int count(@Param("name")String brand);//条件查询酒店信息总条数

    Pub selectPubManageById(@Param("id")Integer id);//根据id查询酒店信息

    int addPubManage(Pub pub);//添加酒店信息

    int updatePubManage(Pub pub);//修改酒店信息
}
